home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Bill Symmes <71046.623@CompuServe.COM>
- Newsgroups: comp.lang.c
- Subject: Re: What should be returned?
- Date: 18 Jan 1996 16:56:36 GMT
- Organization: CompuServe, Inc. (1-800-689-0736)
- Message-ID: <4dlu44$g9r$2@mhadg.production.compuserve.com>
- References: <tcpnntpd.16.1.17.17.34.44.2781597121.346998@the-fix.sos.on.ca>
-
- The exit() function returns the value in the paran, e.g., exit(5)
- would return a DOS error level of 5.
-
- A return() at the end of main() also returns the DOS error level.
-
- Commonly, an error level of 0 is returned if all is well, and
- some non-zero value returned. The returned error level can be
- tested in batch files.
-
- --
- Bill Symmes P*ROM Software Inc
- 71046.623@compuserve.com +1 802 862-7500
- +1 802 862-8357 (Fax)
- Burlington VT 05406-4027
-